#!/usr/bin/tclsh

set hdlDir ./hdl
set tbDir ./sim/tb/
set workDir ./sim/work
set topModule dti_asym_outbuf_tb

vlib $workDir
vmap work $workDir

vlog $hdlDir/*.v
vlog $tbDir/*.v

#compile and sim
vsim -novopt -wlf $topModule.wlf work.$topModule
add wave sim:/$topModule/*
run 399
 
#view wave
vsim -view $topModule.wlf
add wave /$topModule/*
